package com.lxt.cloud.feign;

import com.lxt.cloud.feign.fallback.TestHystrixFeighFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "testcloud1",fallback = TestHystrixFeighFallBack.class)
public interface TestHystrixFeigh {

    @GetMapping("/hystrix/OK/{id}")
    String paymentInfo_OK(@PathVariable("id") Long id);

    @GetMapping("/hystrix/Timeout/{id}")
    String paymentInfo_TimeOut(@PathVariable("id") Long id);

}
